package com.tarena.lbs.user.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.io.Serializable;
import java.util.Date;

/**
 * 后台账号实体类
 */
@Data
@TableName("lbs_admin")
@FieldDefaults(level = AccessLevel.PRIVATE)
public class AdminPO implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    Integer id;

    @TableField("account_phone")
    String accountPhone;

    @TableField("account_password")
    String accountPassword;

    @TableField("nickname")
    String nickname;

    @TableField("email")
    String email;

    @TableField("business_id")
    Integer businessId;

    @TableField("account_status")
    Integer accountStatus;

    @TableField("account_type")
    Integer accountType;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    Date createTime;
}
